/**      
 * @file		forNested.cpp
 * @description		Demonstrates the use of the continue and break
 *			statements. In addition to a nested for statements
 * @course		CSCI 123 Section 00000
 * @assignment		Sample 11
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

/**
 * @return zero if the application executes successfully
 */
int main() {

	for(int p = 0; p < 10; p++) {
		if(p < 5) {
			continue;
		}
		if(p > 5)
			break;
		cout << "This is p " << p << endl;
	}
	
	for(int j = 0; j < 5; j++) {
		cout << "outer: j is " << j << endl;
		for(int i = 4; i > 0; i--) {
			cout << "\tout j is " << j << endl;
			cout << "\tinner: i is " << i << endl;
		}
	}
	return 0;
}
